package com.hsb.seckill.controller;

import com.hsb.seckill.entity.User;
import com.hsb.seckill.rabbitmq.MQSender;
import com.hsb.seckill.result.ResBean;
import com.hsb.seckill.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (User)表控制层
 *
 * @author makejava
 * @since 2021-09-04 15:57:35
 */
@RestController
@RequestMapping("/user")
public class UserController {
    /**
     * 服务对象
     */
    @Resource
    private UserService userService;


    /**
     * 用户信息（测试）
     * @param user
     * @return
     */
    @ResponseBody
    @RequestMapping("/info")
    public ResBean info(User user){
        return ResBean.success(user);
    }
}